package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 资讯对象 fy_info
 *
 * @author ruoyi
 * @date 2025-06-05
 */
public class FyInfo
{
    private static final long serialVersionUID = 1L;

    /** 资讯ID */
    private Long infoId;

    /** 资讯标题 */
    @Excel(name = "资讯标题")
    private String infoTitle;

    /** 封面图 */
    @Excel(name = "封面图")
    private String infoImg;

    /** 来源 */
    @Excel(name = "来源")
    private String source;

    /** 发布时间 */
    @Excel(name = "发布时间")
    private String pubTime;
    private String brief;

    /** 是否置顶 */
    @Excel(name = "是否置顶")
    private String isTop;

    /** 排序 */
    @Excel(name = "排序")
    private Long num;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 删除标识 */
    @Excel(name = "删除标识")
    private Long isDelete;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    public String getBrief() {
        return brief;
    }

    public void setBrief(String brief) {
        this.brief = brief;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
    public void setInfoId(Long infoId)
    {
        this.infoId = infoId;
    }

    public Long getInfoId()
    {
        return infoId;
    }
    public void setInfoTitle(String infoTitle)
    {
        this.infoTitle = infoTitle;
    }

    public String getInfoTitle()
    {
        return infoTitle;
    }
    public void setInfoImg(String infoImg)
    {
        this.infoImg = infoImg;
    }

    public String getInfoImg()
    {
        return infoImg;
    }
    public void setSource(String source)
    {
        this.source = source;
    }

    public String getSource()
    {
        return source;
    }
    public void setPubTime(String pubTime)
    {
        this.pubTime = pubTime;
    }

    public String getPubTime()
    {
        return pubTime;
    }
    public void setIsTop(String isTop)
    {
        this.isTop = isTop;
    }

    public String getIsTop()
    {
        return isTop;
    }
    public void setNum(Long num)
    {
        this.num = num;
    }

    public Long getNum()
    {
        return num;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setIsDelete(Long isDelete)
    {
        this.isDelete = isDelete;
    }

    public Long getIsDelete()
    {
        return isDelete;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("infoId", getInfoId())
            .append("infoTitle", getInfoTitle())
            .append("infoImg", getInfoImg())
            .append("source", getSource())
            .append("pubTime", getPubTime())
            .append("isTop", getIsTop())
            .append("num", getNum())
            .append("content", getContent())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("isDelete", getIsDelete())
            .toString();
    }
}
